package com.zby.test.query.enu;

/**
 * Created By zby on 9:11 2019/1/24
 */

public enum ResultCodeEnum implements BaseResultCodeEnum {


    /**
     * 处理成功
     */
    EXECUTE_SUCCESS("001", "execute success", "处理成功"),

    /**
     * 未知异常
     */
    UNKNOWN_EXCEPTION("002", "unknown exception", "未知异常"),

    /**
     * 数据库异常
     */
    DATABASE_EXCEPTION("003", "database exception", "数据库异常"),

    /**
     * 反射异常
     */
    REFLECT_EXCEPTION("004", "reflect exception", "反射异常"),

    /**
     * 系统内部错误
     */
    INTERNAL_ERROR("005", "internal error", "系统内部错误"),

    /**
     * 值为空
     */
    VALUE_CANNOT_NULL("006", "value cannot null", "值不能为空");

    /**
     * 编码信息
     */
    private String code;
    /**
     * 中文描述信息
     */
    private String chDesc;

    /**
     * 英文描述信息
     */
    private String enDesc;


    ResultCodeEnum() {
    }

    /**
     * Created By zby on 9:21 2019/1/24
     * 枚举也是类，这是构造器，不用声明其可见性
     */
    ResultCodeEnum(String code, String chDesc, String enDesc) {
        this.code = code;
        this.chDesc = chDesc;
        this.enDesc = enDesc;
    }

    @Override
    public String getChDesc() {
        return null;
    }

    @Override
    public String getEnDesc() {
        return null;
    }

    @Override
    public String getCode() {
        return null;
    }
}
